package com.motorhome.h5.service;

import com.motorhome.base.util.Result;
import com.motorhome.h5.domain.Car;
import com.motorhome.h5.domain.Price;
import com.motorhome.h5.domain.User;
import org.springframework.ui.Model;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;

/**
 * @author: John
 */
public interface HomeService {

    List<Car> getAllCarList(Map<String, Object> params);

    Result insertOrder(HttpServletRequest request, User loginUser, String startCityId, String startCityName, String startShopId, String startShopName,
                       String startDate, String endCityId, String endCityName, String endShopId, String endShopName,
                       String endDate, String carId, String carName, String carDescription,
                       String price, String days, String total, String totalSnapshot);

    Price getPriceByCarId(long carId);

    Car getCarById(long carId);

    void tenPay(HttpServletRequest request, Model model);

    String tenpayNotify(HttpServletRequest request, String resultXml);
}
